﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using CodeBuilder2.View.FloatWindow;

namespace CodeBuilder2
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static MainWnd MainWnd
        {
            get { return Application.Current.MainWindow as MainWnd; }
        }

        public static SimpleFloatWindow SimpleFloatWindow
        {
            get
            {
                SimpleFloatWindow sfw = null;
                foreach (Window item in Application.Current.Windows)
                {
                    if (item.Name == "sfWnd")
                        sfw = item as SimpleFloatWindow;
                }
                return sfw;
            }
        }
    }
}
